package Dame;

import java.io.File;

public class ddd {
    public static void main(String[] args) {
        File f1 = new File("G:\\javaSE_plus\\day11");
        boolean f2 = f1.exists();
        deletedor(f1);

    }

    public static void deletedor(File f) {
        File[] f1 = f.listFiles();
        for (File file : f1) {
            String s = String.valueOf(file);
            if (s.contains("class")){
                file.delete();
            }else {

            }
        }
    }
}
